<?PHP
$page = $this->uri->segment(2);
$sub_page = $this->uri->segment(3);
?>	
<!-- BEGIN SIDEBAR -->
<div class="page-sidebar-wrapper">
	<div class="page-sidebar navbar-collapse collapse">
		<ul class="page-sidebar-menu" data-keep-expanded="false" data-auto-scroll="true" data-slide-speed="200">
			<li>
				<a href="#">
				<i class="icon-list"></i>
				<span class="title">Dashboard</span>
				</a>
			</li>
			<li <?PHP if($page == "car") echo "class='open'"?>>
				<a href="javascript:;">
				<i class="fa fa-car"></i>
				<span class="title">Car Management</span>
				<span class="arrow <?PHP if($page == "car") echo "open"?>"></span>
				</a>
				<ul class="sub-menu" <?PHP if($page == "car") echo "style='display:block'"?>>
					<li <?PHP if($page == "car" && $sub_page == '') echo "class='active'"?>>
						<a href="<?PHP echo base_url()?>administrator/car">
						<i class="icon-book-open"></i>
						Overview</a>
					</li>
					<li <?PHP if($page == "car" && $sub_page != '') echo "class='open'"?>>
						<a href="javascript:;">
						<i class="icon-magnifier"></i> Detail 
						<span class="arrow <?PHP if($page == "car" && $sub_page != '') echo "open"?>"></span>
						</a>
						<ul class="sub-menu" <?PHP if($page == "car" && $sub_page != '') echo "style='display:block'"?>>
							<li <?PHP if($sub_page == 'description') echo "class='active'"?>>
								<a href="<?php echo base_url() ?>administrator/car/description"><i class="icon-speech"></i> Description</a>
							</li>
							<li <?PHP if($sub_page == 'feature') echo "class='active'"?>>
								<a href="<?php echo base_url() ?>administrator/car/feature"><i class="icon-pencil"></i> Feature</a>
							</li>
							<li <?PHP if($sub_page == 'gallery') echo "class='active'"?>>
								<a href="<?php echo base_url() ?>administrator/car/gallery"><i class="icon-picture"></i> Gallery</a>
							</li>
							<li <?PHP if($sub_page == 'type') echo "class='active'"?>>
								<a href="<?php echo base_url() ?>administrator/car/type"><i class="fa fa-list-ul"></i> Type</a>
							</li>
							<li <?PHP if($sub_page == 'specification') echo "class='active'"?>>
								<a href="<?php echo base_url() ?>administrator/car/specification"><i class="fa fa-list-ul"></i> Spesification Engine</a>
							</li>
							<li <?PHP if($sub_page == 'spareparts') echo "class='active'"?>>
								<a href="<?php echo base_url() ?>administrator/car/spareparts"><i class="fa fa-wrench"></i> Spareparts</a>
							</li>
							<li <?PHP if($sub_page == 'brochure') echo "class='active'"?>>
								<a href="<?php echo base_url() ?>administrator/car/brochure"><i class="fa fa-file-text"></i> Brochure</a>
							</li>
							<li <?PHP if($sub_page == 'custom') echo "class='active'"?>>
								<a href="<?php echo base_url() ?>administrator/car/custom"><i class="fa fa-file-code-o"></i> Custom Page</a>
							</li>
						</ul>
					</li>
				</ul>
			</li>
			<li <?PHP if($page == "career") echo "class='active'"?>>
				<a href="<?PHP echo base_url()?>administrator/career">
				<i class="fa fa-briefcase"></i>
				<span class="title">Career Management</span>
				</a>
			</li>
			<li <?PHP if($page == "contact") echo "class='active'"?>>
				<a href="<?PHP echo base_url()?>administrator/contact">
				<i class="fa fa-phone-square"></i>
				<span class="title">Contact Management</span>
				</a>
			</li>
			<li <?PHP if($page == "dealer") echo "class='active'"?>>
				<a href="<?PHP echo base_url()?>administrator/dealer">
				<i class="fa fa-building"></i>
				<span class="title">Dealer Management</span>
				</a>
			</li>
			<li <?PHP if($page == "news") echo "class='active'"?>>
				<a href="<?PHP echo base_url()?>administrator/news">
				<i class="fa fa-edit"></i>
				<span class="title">News Management</span>
				</a>
			</li>
			<li <?PHP if($page == "owner") echo "class='open'"?>>
				<a href="#">
				<i class="fa fa-tasks"></i>
				<span class="title">Owner Management</span>
				<span class="arrow <?PHP if($page == "owner") echo "open"?>"></span>
				</a>
				<ul class="sub-menu" <?PHP if($page == "owner") echo "style='display:block'"?>>
					<li <?PHP if($sub_page == "maintenance") echo "class='active'"?>>
						<a href="<?PHP echo base_url()?>administrator/owner/maintenance">
						<i class="fa fa-wrench"></i> Maintenance</a>
					</li>
					<li <?PHP if($sub_page == "safety") echo "class='active'"?>>
						<a href="<?PHP echo base_url()?>administrator/owner/safety">
						<i class="fa fa-umbrella"></i> Safety</a>
					</li>
					<li <?PHP if($sub_page == "warranties") echo "class='active'"?>>
						<a href="<?PHP echo base_url()?>administrator/owner/warranties">
						<i class="fa fa-check-square-o "></i> Warranties</a>
					</li>
					<li <?PHP if($sub_page == "manual") echo "class='active'"?>>
						<a href="<?PHP echo base_url()?>administrator/owner/manual">
						<i class="fa fa-file-text"></i> Manuals</a>
					</li>
					<li <?PHP if($sub_page == "custom") echo "class='active'"?>>
						<a href="<?PHP echo base_url()?>administrator/owner/custom">
						<i class="fa fa-file-code-o "></i> Custom Page</a>
					</li>
				</ul>
			</li>
			<li <?PHP if($page == "user") echo "class='active'"?>>
				<a href="<?PHP echo base_url()?>administrator/user">
				<i class="icon-users"></i>
				<span class="title">User Management</span>
				</a>
			</li>
			<li <?PHP if($page == "setting") echo "class='active'"?>>
				<a href="<?PHP echo base_url()?>administrator/setting">
				<i class="icon icon-settings"></i>
				<span class="title">Setting</span>
				</a>
			</li>
		</ul>
		<!-- END SIDEBAR MENU -->
	</div>
</div>
<!-- END SIDEBAR -->